package com.ts.host;

import com.rio.core.L;
import com.rio.core.U;
import com.ts.manager.MachineManager;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class KillService extends Service {
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {

		if(U.notNull(intent) && APP.ACTION.equals(intent.getAction()) && flags==0){
			int p = intent.getIntExtra(APP.ACTION, 0);
			if(p!=0){
				MachineManager.getInstance().killProcess(p);
			}
		}
		return super.onStartCommand(intent, flags, startId);
	}
	
	

	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return null;
	}

}
